﻿<%@ Page Title="Template Hierarchy" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Hierarchy.aspx.cs" Inherits="Templates_Hierarchy" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc" %>

<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header ID="ucHeader" runat="server" />
    <div class="tabPage">
        <div class="actions clearfix">
            <div class="floatRight">
<%--                <acms:ActionButton ID="btnAdd" Icon="Add" Text="Add Child Template" runat="server" />
                <acms:ActionButton ID="btnSave" Icon="Save" Text="Save" Visible="false" ValidationGroup="Save" runat="server" />
                <acms:ActionButton ID="btnCancel" Icon="Cancel" Text="Cancel" CausesValidation="false" Visible="false" runat="server" />
--%>                <asp:LinkButton ID="btnAdd" CssClass="actionBtn abAdd" runat="server">
                    <div class="tl">
                        <div class="tr">
                            <div class="bl">
                                <div class="br">
                                    <span>Add Child Template</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:LinkButton>
                
                <asp:LinkButton ID="btnSave" CssClass="actionBtn abSave" ValidationGroup="Save" Visible="false" runat="server">
                    <div class="tl">
                        <div class="tr">
                            <div class="bl">
                                <div class="br">
                                    <span>Save</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:LinkButton>
                
                <asp:LinkButton ID="btnCancel" CssClass="actionBtn abCancel" Visible="false" runat="server">
                    <div class="tl">
                        <div class="tr">
                            <div class="bl">
                                <div class="br">
                                    <span>Cancel</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:LinkButton>
                
            </div>
        </div>
        <telerik:RadGrid ID="gridChildren" SkinID="InlineEdit" DataSourceID="dsChildren" AutoGenerateColumns="false" AllowAutomaticDeletes="true" AllowAutomaticInserts="true" runat="server">
            <MasterTableView DataKeyNames="Id, ConcurencyId">
                <Columns>
                    <acms:RadGridDropDownColumn DataField="ChildName" DataValueField="ChildId" DropDownDisplayField="Name" DropDownValueField="Id" DataSourceID="dsTemplates" Required="true" RequiredValidationGroup="Save" ShowEmptyItem="true"/>
                    <acms:RadGridSequenceColumn />
                    <acms:RadGridDeleteColumn />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:TemplateHierarchyDataSource id="dsChildren" runat="server" />
    <acms:TemplateDataSource id="dsTemplates" runat="server" />
</asp:Content>

